/*
* select * from log_models where (date (created_at)=date(now()))
*
* select * from log_models where created_at >= date_sub(now(),interval 7 DAY )
*
* */